package ouyangye;

public class square extends rectangle {
    public square(String name, double side) {
        super(name, side, side);
    }

    @Override
    public double Area() {
        double side=getLength();
        return side*side;
    }

    @Override
    public double Long(){
        double side=getLength();
        return 4*side;
    }
}
